<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/vendor/jquery/jquery.min.js"></script>
</head>
<body>
<h2>个人中心</h2>
<table id="content">

</table>
<script>
    $.ajax({
        url:"/ajaxtest/?id=1",
        type:"get",
        data:"",
        success:function (data) {
            console.log(data.data);
            var html = "<tr>\n" +
                "        <td>"+data.data.username+"</td>\n" +
                "        <td>"+data.data.password+"</td>\n" +
                "        <td>"+data.data.nick_name+"</td>\n" +
                "        <td>"+'<img src="/static/' + data.data.picture + '" alt="">'+"</td>\n" +
                "    </tr>";
            $("#content").html(html)
        },
        error:function (error) {
            console.log(error)
        }
    })
</script>
</body>
</html>